<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>餐厅打印日志信息管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
            $('#inputForm').bootstrapValidator({
                message: 'This value is not valid',
                feedbackIcons: {
                    valid: 'glyphicon glyphicon-ok',
                    invalid: 'glyphicon glyphicon-remove',
                    validating: 'glyphicon glyphicon-refresh'
                },
                fields: {
						
					restaurantId: {
                            message: 'restaurantId格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'restaurantId不能为空'
                                }
                            }
                        }
						,
					restaurantOrderId: {
                            message: 'restaurantOrderId格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'restaurantOrderId不能为空'
                                }
                            }
                        }
						,
					orderSerialNum: {
                            message: 'orderSerialNum格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'orderSerialNum不能为空'
                                }
                            }
                        }
						,
					name: {
                            message: 'name格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'name不能为空'
                                }
                            }
                        }
						,
					printType: {
                            message: 'printType格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'printType不能为空'
                                }
                            }
                        }
						,
					remark: {
                            message: 'remark格式错误',
                            validators: {
                                notEmpty: {
                                    message: 'remark不能为空'
                                }
                            }
                        }
                }
            })
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs nav-tabss">
		<li><a href="${ctx}/basedata/restaurantPrintLog/">餐厅打印日志信息列表</a></li>
		<li class="active"><a href="${ctx}/basedata/restaurantPrintLog/form?id=${restaurantPrintLog.id}">餐厅打印日志信息<shiro:hasPermission name="basedata:restaurantPrintLog:edit">${not empty restaurantPrintLog.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="basedata:restaurantPrintLog:edit">查看</shiro:lacksPermission></a></li>
	</ul>
	<div class="ibox-content">
		<form:form id="inputForm" modelAttribute="restaurantPrintLog" action="${ctx}/basedata/restaurantPrintLog/save" method="post" class="form-horizontal">
			<tags:message content="${message}"/>
			<form:hidden path="id"/>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="restaurantId">restaurantId:</label>
                    <div class="col-sm-4">
                        <form:input path="restaurantId" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="restaurantOrderId">restaurantOrderId:</label>
                    <div class="col-sm-4">
                        <form:input path="restaurantOrderId" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="orderSerialNum">orderSerialNum:</label>
                    <div class="col-sm-4">
                        <form:input path="orderSerialNum" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="name">name:</label>
                    <div class="col-sm-4">
                        <form:input path="name" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="printType">printType:</label>
                    <div class="col-sm-4">
                        <form:input path="printType" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="remark">remark:</label>
                    <div class="col-sm-4">
                        <form:input path="remark" htmlEscape="false" class="required form-control"/>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
			<div class="form-group">
				<label class="col-sm-2 control-label"></label>
				<div class="col-sm-4">
					<shiro:hasPermission name="basedata:restaurantPrintLog:edit">
						<input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;
					</shiro:hasPermission>
					<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
				</div>
			</div>
		</form:form>
	</div>
</body>
</html>
